import request from '@/utils/axios'
export function login (data:any): Promise<any> {
  return request({
    url: '/user/login',
    method: 'post',
    data
  })
}

export function registerUser (data:any): Promise<any> {
  return request({
    url: '/user/register',
    method: 'post',
    data
  })
}

export function getCaptcha (email: string): Promise<any> {
  return request({
    url: `/user/register-captcha?address=${email}`,
    method: 'get'
  })
}